<template>
  <div>
    <AmisRenderer :amisType="amisType" />
  </div>
</template>
<script setup lang="ts">
import { AmisRenderer } from '@/components/AMisRenderer'
import { onMounted, ref } from 'vue'
const amisType = ref('')
onMounted(() => {
  let url = window.location.hash
  let a = url.substring(url.lastIndexOf('/') + 1)
  let b = a.lastIndexOf('_')
  if (b > 0) {
    amisType.value = a.substring(0, b)
  } else {
    amisType.value = a
  }
})
</script>
